var express = require('express');
var app = express();

app.use(function(req,res,next){
    console.log(req.url);
    next();
});

app.get("/",function(req,res,next){
    res.send("<h1>首页</h1>");
    next();
});

app.get("/login",function(req,res,next){
    res.send("登录");
    next();
});

app.listen(3000);
